$NG.AllReady(function (page, { useAction, useBeforeClick, useValuesChange, useClick, useUpdateRow, subscribe, useUpdateRows }) {
    const mstform = $NG.getCmpApi("p_form_aqfyysjh_m")
    const dgrid1 = $NG.getCmpApi("")
    const getHeadValue = (str)=>mstform.getItem(str).getValue()

        isRequired()

    useValuesChange(()=>{
        isRequired()
    },"p_form_aqfyysjh_m.u_aqfyysjhlx")
    useValuesChange(()=>{
        isRequired()
    },"p_form_aqfyysjh_m.u_synd")
    useValuesChange(()=>{
        isRequired()
    },"p_form_aqfyysjh_m.u_syjd")
    useValuesChange(()=>{
        isRequired()
    },"p_form_aqfyysjh_m.u_syyd")

    // hidden
    function isRequired(){
        const u_aqfyysjhlx = getHeadValue("u_aqfyysjhlx")
        let one = false
        if(!u_aqfyysjhlx){
            one = true
        } else {
            one = false
        }
        ['u_synd','u_syjd','u_syyd'].forEach(el=>{
            switch(el){
                case 'u_synd':
                    mstform.getItem("u_synd").setProps({
                        disabled:!(u_aqfyysjhlx == "01")
                    })
                    break;
                case "u_syjd":
                    mstform.getItem("u_syjd").setProps({
                        disabled:!(u_aqfyysjhlx == "02")
                    })
                    break;
                case "u_syyd":
                    mstform.getItem("u_syyd").setProps({
                        disabled:!(u_aqfyysjhlx == "03")
                    })
                    break;
                default:
                    mstform.getItem(el).setProps({
                        disabled:true
                    })
            }
        })
    }
})